﻿@model LoginVm
@{
    ViewData["Title"] = "Login";
}

<h2>Login</h2>
<div class="row">
    <div class="col-md-4">
        <section>
            <form method="post" asp-controller="Account" asp-action="Login" asp-route-returnUrl="@ViewData["ReturlUrl"]" class="form-horizontal">
                <h4>Use a local account to log in.</h4>
                @Html.AntiForgeryToken()
                <div class="text-danger" asp-validation-summary="All"></div>
                <hr />
                <div class="form-group">
                    <label asp-for="Email" class="control-label col-md-2"></label>
                    <div class="col-md-10">
                        <input asp-for="Email" class="form-control" />
                        <span class="text-danger" asp-validation-for="Email"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label asp-for="Password" class="control-label col-md-2"></label>
                    <div class="col-md-10">
                        <input asp-for="Password" class="form-control" />
                        <span class="text-danger" asp-validation-for="Password"></span>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-default">Log in</button>
                </div>
            </form>
        </section>
    </div>
</div>
@section Scripts{
    @await Html.PartialAsync("_ValidationScriptsPartial")
}